# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=py3-terminado
pkgver=0.15.0
pkgrel=0
pkgdesc="Tornado websocket backend for xterm.js"
url="https://github.com/jupyter/terminado"
arch="noarch"
license="BSD-2-Clause"
depends="py3-ptyprocess py3-tornado"
checkdepends="py3-pytest"
makedepends="py3-build py3-hatchling py3-installer"
source="$pkgname-$pkgver.tar.gz::https://github.com/jupyter/terminado/archive/refs/tags/v$pkgver.tar.gz
	bash.patch
	test_get_pid.patch
	"
builddir="$srcdir/terminado-$pkgver/"

build() {
	python3 -m build --wheel --no-isolation --skip-dependency-check
}

check() {
	pytest
}

package() {
	python3 -m installer --destdir="$pkgdir" dist/*.whl
}

sha512sums="
409803a482e50ad9b8607937306fe2ceb1ef16689d5204605f34ec4c7f82b66552cd63d4d73c35d383edae50848b116b04cf3cb2b572a872cb6ab53189b8a024  py3-terminado-0.15.0.tar.gz
924cf4a77d992a3096780354131800220d776197f88a1cb7347bfd94b3469dc361fb86833f7d2e78829ba5910c8aadc48fbbbec4d9a994f4253712b2c931e757  bash.patch
612260d4c5fb44528cd98b3dbe34df92657442130e26d03b75ee4e416b0faf88047ce3ccbc5301d7a6f175902337835217c36a77f3c6254e26a05822440aabc9  test_get_pid.patch
"
